
import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import Vant from "vant";
import axios from "axios";
import "vant/lib/index.css";
import "lib-flexible/flexible";
import { request, http, authRequest } from '@/request/http'
import { timeFormat, isWX, storage, Debounce } from '@/utils/utils'
import AmapVue from "@amap/amap-vue";



AmapVue.config.version = "2.0"; // 默认2.0，这里可以不修改
AmapVue.config.key = "1c99f4239d133cd1462fee540fc8df07";
AmapVue.config.plugins = [
  "AMap.ToolBar",
  "AMap.MoveAnimation",
  // 在此配置你需要预加载的插件，如果不配置，在使用到的时候会自动异步加载
];
Vue.use(AmapVue);

Vue.config.productionTip = false

Vue.prototype.$timeFormat = timeFormat
Vue.prototype.$isWX = isWX()
Vue.prototype.$request = request
Vue.prototype.$authRequest = authRequest
Vue.prototype.$http = http
Vue.prototype.$storage = new storage()
Vue.prototype.$axios = axios


new Vue({
    store,
    router,
    render: h => h(App),
}).$mount('#app')